﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Kunden.master" CodeBehind="WebFormDetails.aspx.vb" Inherits="PMS_Linq.WebFormDetails" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <br __designer:mapid="128" />
<br __designer:mapid="129" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Label ID="lblUeberschrift" runat="server" style="font-size: x-large" 
        Text="Label"></asp:Label>
    
<asp:FormView ID="FVKunde2" runat="server" DataKeyNames="ID" 
                DataSourceID="LinqDataSourceFVKunde">
    <EditItemTemplate>
        <table style="width:100%;">
            <tr>
                <td>
                                Name</td>
                <td>
                    <asp:TextBox ID="NameTextBox" runat="server" Text='<%# Bind("Name") %>' 
                                    Width="184px"  />
                </td>
            </tr>
            <tr>
                <td>
                                Hompage</td>
                <td>
                    <asp:TextBox ID="HompageTextBox" runat="server" Text='<%# Bind("Hompage") %>'  
                                    Width="184px" />
                </td>
            </tr>
            <tr>
                <td>
                                Strasse+Nr.</td>
                <td>
                    <asp:TextBox ID="Strasse_hausnummerTextBox" runat="server" 
                                    Text='<%# Bind("Strasse_hausnummer") %>'  Width="184px" />
                </td>
            </tr>
            <tr>
                <td>
                                Ort</td>
                <td>
                    <asp:TextBox ID="OrtTextBox" runat="server" Text='<%# Bind("Ort") %>'  
                                    Width="184px" />
                </td>
            </tr>
            <tr>
                <td>
                                Postleitzahl</td>
                <td>
                    <asp:TextBox ID="PostleitzahlTextBox" runat="server" 
                                    Text='<%# Bind("Postleitzahl") %>' Width="184px"  />
                </td>
            </tr>
            <tr>
                <td>
                                Land</td>
                <td>
                    <asp:TextBox ID="LandTextBox" runat="server" Text='<%# Bind("Land") %>'  
                                    Width="184px" />
                </td>
            </tr>
            <tr>
                <td>
                                Branche</td>
                <td>
                    <asp:TextBox ID="BrancheTextBox" runat="server" Text='<%# Bind("Branche") %>' 
                                    Width="184px" />
                </td>
            </tr>
            <tr>
                <td>
                                Kurzbeschreibung</td>
                <td>
                    <asp:TextBox ID="KurzbeschreibungTextBox" runat="server" 
                                    Text='<%# Bind("Kurzbeschreibung") %>' TextMode="MultiLine" Height="40px" 
                                    Width="184px" />
                </td>
            </tr>
        </table>
        <br />
        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
                        CommandName="Update" Text="Aktualisieren" />
                    &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
                        CausesValidation="False" CommandName="Cancel" 
            Text="Abbrechen" />
    </EditItemTemplate>
    <ItemTemplate>
        <table style="width: 100%;">
            <tr>
                <td>
                                Name&nbsp;
                            </td>
                <td>
                    <asp:Label ID="NameLabel" runat="server" Text='<%# Bind("Name") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                                Hompage&nbsp;
                            </td>
                <td>
                    <asp:Label ID="HompageLabel" runat="server" Text='<%# Bind("Hompage") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                                Strasse_hausnummer&nbsp;
                            </td>
                <td>
                    <asp:Label ID="Strasse_hausnummerLabel" runat="server" 
                        Text='<%# Bind("Strasse_hausnummer") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                                Ort&nbsp;
                            </td>
                <td>
                    <asp:Label ID="OrtLabel" runat="server" Text='<%# Bind("Ort") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                               Postleitzahl &nbsp;
                            </td>
                <td>
                    <asp:Label ID="PostleitzahlLabel" runat="server" 
                        Text='<%# Bind("Postleitzahl") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                                Land:&nbsp;
                            </td>
                <td>
                    <asp:Label ID="LandLabel" runat="server" Text='<%# Bind("Land") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                                 Branche&nbsp;
                            </td>
                <td>
                    <asp:Label ID="BrancheLabel" runat="server" Text='<%# Bind("Branche") %>' />
                    &nbsp;
                            </td>
            </tr>
            <tr>
                <td>
                                Kurzbeschreibung&nbsp;
                            </td>
                <td>
                    <asp:Label ID="KurzbeschreibungLabel" runat="server" 
                        Text='<%# Bind("Kurzbeschreibung") %>' />
                    &nbsp;
                            </td>
            </tr>
        </table>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
                        CommandName="Edit" Text="Bearbeiten" />
                    &nbsp;&nbsp;&nbsp; <asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False" 
                        CommandName="Delete" Text="Löschen" />
    </ItemTemplate>
</asp:FormView>
<br __designer:mapid="12a" />
<asp:LinqDataSource ID="LinqDataSourceFVKunde" runat="server" 
                ContextTypeName="PMS_Linq.hc_databaseDataContext" EnableDelete="True" 
                EnableUpdate="True" TableName="Kundes" Where="ID == @ID">
    <WhereParameters>
        <asp:SessionParameter Name="ID" SessionField="KundeID" Type="Int32" />
    </WhereParameters>
</asp:LinqDataSource>
</asp:Content>
